#include <stdio.h> int main() { /* Print to screen */ printf("Hey World, how's it going?\n"); return (1); }
#include <stdio.h>This tells the compiler to add the header (I'll explain this later) file named stdio.h (standard i/o) to your program. This header file contains the function "printf". For now, always use the chevrons (< >) to enclose an included file. Later on, when you create your own headers, this will change. The header file is a standard library of functions/commands that is part of the C (or C++) language. They exist so that you can pick and choose what you want to include in your program.
int main()This is the body section of your program. When your program executes (runs), the "main" function is called by the computer. This line contains lots of information. The anatomy of it is like this:
<return type> <function name> (<argument 1 type> <argument 1 name>, ... )
/* Print to screen */
printf("Hey World, how's it going?\n");
return (1);